<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>科目明细</title>
	<include file="Public:header" />
	<style type="text/css">
		.input{width:100px;border:1px solid #ccc;padding:2px;}
	</style>
	<script type="text/javascript">
		var actflg="{:C('URL_MODEL')}"=="0"?"&":"?";

		function selectall_todo()
		{
			$("input[name='chk_list']").attr("checked",true);
		}
		function selectall_undo()
		{
			$("input[name='chk_list']").attr("checked",false);
		}
		$(document).ready(function(){
			$('#misone_list_table').datagrid({
				//url: '///',
				//title: 'DataGrid',
				//width: 800,
				//height: 220,
				fitColumns: true,
				nowrap:true,
				rownumbers:true,
				showFooter:false,
				columns:[[
					{field:'col01',title:'日期',width:70},
					{field:'col02',title:'接要',width:120},
					{field:'col03',title:'科目',width:50},
					{field:'col04',title:'名称',width:60},
					{field:'col05',title:'客户',width:80},
					{field:'col06',title:'供应商',width:80},
					{field:'col07',title:'货币',width:50},
					{field:'col08',title:'原币借方',width:50,align:'right'},
					{field:'col09',title:'借方',width:50,align:'right'},
					{field:'col10',title:'原币贷方',width:50,align:'right'},
					{field:'col11',title:'贷方',width:50,align:'right'},
					{field:'col12',title:'查看凭证',width:50,align:'center'}
				]]
			});
		});
	</script>
</head>
<body class="">
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div>科目明细</div>
		<div>
		<form id="frm_search" method="post" action="{:U('Finance/vou_detail')}" style="margin:10px auto 0px 25px;">
		
		<div style="width:100%; height:25px;">
		
		<div class="list-t-l w60px">科目代码：</div>
		<div class="list-t-l w120px"><input type="text" id="acc_code" name="acc_code" class="input" value="{$acc_code}" /></div>
		
		<div class="list-t-l w60px">日期(从)：</div>
		<div class="list-t-l w120px"><input type="text" id="mas_fadate1" name="mas_fadate1" class="easyui-datebox" editable="false" value="{$mas_fadate1}" style="width:100px;" /></div>
		
		<div class="list-t-l w60px">客户名称：</div>
		<div class="list-t-l w120px"><input type="text" id="customer_title" name="customer_title" class="input" value="{$customer_title}" /></div>
		
		<div class="list-t-l w60px">摘要：</div>
		<div class="list-t-l w120px"><input type="text" id="mas_remark" name="mas_remark" class="input" value="{$mas_remark}" /></div>
		
		</div>
		
		<div style="height:3px; clear:both;"></div>
		
		<div style="width:100%; height:25px;">
		
		<div class="list-t-l w60px">科目名称：</div>
		<div class="list-t-l w120px"><input type="text" id="acc_title" name="acc_title" class="input" value="{$acc_title}" /></div>
		
		
		<div class="list-t-l w60px">日期(到)：</div>
		<div class="list-t-l w120px"><input type="text" id="mas_fadate2" name="mas_fadate2" class="easyui-datebox" editable="false" value="{$mas_fadate2}" style="width:100px;" /></div>
		
		<div class="list-t-l w60px">供应商：</div>
		<div class="list-t-l w120px"><input type="text" id="supplier_title" name="supplier_title" class="input" value="{$supplier_title}" /></div>
		
		<div class="list-t-l w60px"></div>
		<div class="list-t-l w120px"><a href="javascript:;" class="easyui-linkbutton" iconCls="icon-search" onclick="$('#frm_search').submit();">搜索</a></div>
		
		</div>
		
		
		</form>
		</div>
	</div>
	<div class="list-box space-out-5px">
	
	<table id="misone_list_table"><tbody>
	<volist name="datalist" id="datalist">
	<tr>		
		<td field="col01">{$datalist.mas_fadate|date='Y-m-d',###}</td>
		<td field="col02"><span  alt="{$datalist.mas_remark}" title="{$datalist.mas_remark}">{$datalist.mas_remark}</span></td>
		<td field="col03">{$datalist.acc_code}</td>
		<td field="col04">{$datalist.acc_title}</td>
		<td field="col05">{$datalist.customer_title}</td>
		<td field="col06">{$datalist.supplier_title}</td>
		<td field="col07">{$datalist.curr_code} {$datalist.curr_rate}</td>
		<td field="col08">{$datalist.curr_dr|get_round=###,2,false}</td>
		<td field="col09">{$datalist.dr|get_round=###,2,false}</td>
		<td field="col10">{$datalist.curr_cr|get_round=###,2,false}</td>
		<td field="col11">{$datalist.cr|get_round=###,2,false}</td>
		<td field="col12"><a href="javascript:;" onclick="parent.addTab('凭证追踪(VOUMAS#{$datalist.masid})','{:U('Finance/vou_edit?id='.$datalist['masid'].'')}');">凭证追踪</a>
		</td>
	</tr>
	</volist>
	</tbody></table>
	
	<div style="height:5px; clear:both;"></div>
	
	</div>
	
	
	<div class="space-out-5px">
	
		
	<div class="list-title">
		<div class="list-t-l"><b>原币借方：{$acc_total.curr_dr|get_round=###}&nbsp;&nbsp;&nbsp;&nbsp;借方：{$acc_total.dr|get_round=###}</b></div>
		<div class="list-t-l w30px"></div>
		<div class="list-t-l"><b>原币贷方：{$acc_total.curr_cr|get_round=###}&nbsp;&nbsp;&nbsp;&nbsp;贷方：{$acc_total.cr|get_round=###}</b></div>
		<div class="list-t-l w30px"></div>
		<div class="list-t-l"><b>原币借减贷：<php>echo get_round($acc_total['curr_dr']-$acc_total['curr_cr']);</php>&nbsp;&nbsp;&nbsp;&nbsp;借减贷：<php>echo get_round($acc_total['dr']-$acc_total['cr']);</php></b></div>
		<div class="list-t-r"></div>
	</div>
	
	
	</div>
	
	<div class="demo-info space-out-5px">
		<div class="demo-tip icon-tip"></div>
		<div class="pages">&nbsp;{$page}</div>
	</div>
</body>
</html>
